package com.dabai.iot.common.model;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 客户端消息
 *
 * @author kev1n
 */
public record IotMqttMessage(
    String traceId,
    String topic,
    String payload,
    Integer qos,
    String dataType,
    Date reportTime) implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    public IotMqttMessage {
        topic = topic.trim();
    }

}
